<html>

<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
	<title>Confirmar exclusao de Pedido</title>
</head>

<body>
	<center>
		<table border = '1px' width = '100%' />
			<?php include_once "/layout/header.php" ?>
				<tr>
			<?php include_once "/layout/menuPedido.php" ?>
				<td>
					<h2>Confirmar exclusao de Pedido:</h2></br>
					
						<form action = "pedido/gerenciarPedido.php" method = "POST"/>
							<?php REQUIRE_ONCE "/includes/config.inc.php";
							
							$idPedido = $_GET["ped"];
							
							echo "<input type='hidden' name='metodo' value='remover'/>";
							echo "<input type='hidden' name='idPedido' value='".$idPedido."'/>";
							
							$sql = "SELECT * from tbPedido where idPedido = ".$idPedido;
							$result = mysql_query($sql);
							$row = mysql_fetch_assoc($result);
							$dataPedido = $row['dataPedido'];
							
							$sql = "select nomeCliente from tbCliente inner join tbPedido on idCliente = fk_idCliente where idPedido =".$idPedido;
							$result = mysql_query($sql);
							$row = mysql_fetch_assoc($result);
							$nomeCliente = $row['nomeCliente'];
							?>
						
							Cliente: <?php echo $nomeCliente ?> </br>
							Data: <?php echo $dataPedido ?> </br>
						
							<input type = "submit" value = "Excluir"/></br>
							<input type = "button" value = "Cancelar" onClick = "history.back();"/>
						</form>
				</td>
			</td>
			<?php include_once "/layout/footer.php" ?>
		</table>
	</center>
</body>

</html>